/*
* Copyright 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
*/
package com.laihuichuxing.flyweight;/**
 * Description:
 *
 * @author: Qinxuefeng
 * @since: 1.0
 * Create Date Time: 2019/1/2 14:14
 * Update Date Time:
 */

/**
 * @program: learnmodel
 *
 * @description:
 *
 * @author: QinXueFeng
 *
 * @create: 2019-01-02 14:14
 **/
public abstract class FlyWeight {
    public abstract void operation(int extrinsicState);
}
class ConcreteFlyWeight extends FlyWeight{

    @Override
    public void operation(int extrinsicState) {
        System.out.println("具体FlyWeight：" + extrinsicState);
    }
}
class UnsharedConcreteFlyWeight extends FlyWeight{

    @Override
    public void operation(int extrinsicState) {
        System.out.println("不共享的具体FlyWeight：" + extrinsicState);
    }
}
